package com.cc8w.entity;

import java.io.Serializable;
import java.util.Date;


public class PEntity  implements Serializable {
    private static final long serialVersionUID = -6391149300294480283L;

    private int id;
    private String name;
    private int sex;
    private String cardId;
    private Date createTime;
    
    private PcardEntity Pcard; //一对一的关系。保存映射类的实例对象。


    public PEntity() {

    }
    public PEntity(int id, String name) {
        super();
        this.id = id;
        this.name = name;

    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getSex() {
		return sex;
	}
	public void setSex(int sex) {
		this.sex = sex;
	}

	public String getCardId() {
		return cardId;
	}
	public void setCardId(String cardId) {
		this.cardId = cardId;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	

	public PcardEntity getPcard() {
		return Pcard;
	}
	public void setPcard(PcardEntity pcard) {
		Pcard = pcard;
	}
	@Override
	public String toString() {
		return "pEntity [id=" + id + ", name=" + name + ", sex=" + sex + ", cardid=" + cardId + ", createTime="
				+ createTime + "]";
	}

	
   


}
